package com.example.wemedia.feign;

import com.example.wemedia.feign.impl.WmNewsEsFeignImpl;
import com.usian.model.media.pojos.WmNews;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(name = "leadnews-search",fallback = WmNewsEsFeignImpl.class)
public interface WmNewsEsFeign {
    @PostMapping("search/v1/add_search")
    void addEsWmNews(WmNews wmNews);
}
